﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MigrationTool
{
    /// <summary>
    /// アプリケーション定数クラス
    /// </summary>
    public static class ApplicationConst
    {
        #region 定数
        public const string PATH_PSTFILE = @"{0}\{1}.pst";
        public const string PATH_PSTFOLDER = @"{0}\{1}";
        public const string PATH_PRFFILE = @"{0}\{1}.prf";
        public const string OUTLOOK_DEFAULT_PATH = @"C:\Users\{0}.{1}\AppData\Local\Microsoft\Outlook\{2} - {3}.pst";

        public const string DEFAULT_PROFILE = "Outlook";
        public const string OUTLOOK = "OUTLOOK";
        public const string OUTLOOK_APP = "Outlook.Application";
        public const string APP_OUTLOOK = "outlook.exe";
        public const string APP_OPTION = "/profile {0}";
        public const string APP_OPTION_SAFE = "/profile {0} /safe";
        public const string PROFILE_NAME = "MigrationProfile{0}";
        public const string PROFILE_NAME_2003 = "Ex2003Migration";
        public const string PROFILE_NAME_2013 = "Ex2013Migration";
        public const string PATH_PRFFORDER = @".\PrfFiles";

        public const string REG_KEY_PROFILE = @"Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles";
        public const string REG_KEY_ACCOUNT = "9375CFF0413111d3B88A00104B2A6676";
        public const string REG_IMAPUSER = "IMAP User";
        public const string REG_IMAPPASSWORD = "IMAP Password";

        public const string IMAP_COMMAND_LOGIN = "? LOGIN \"{0}\" \"{1}\"\r\n";
        public const string IMAP_COMMAND_LOGOUT = "? LOGOUT\r\n";
        public const string IMAP_COMMAND_LOGIN2 = "? CAPABILITY\r\n";
        public const string MAPI = "MAPI";
        public const string OK_LOGIN = "OK LOGIN";

        public const string TEMPLATE_PRF_IMAP = @".\PrfTemplate\TemplateImap.prf";
        public const string TEMPLATE_PRF_EXCHANGE = @".\PrfTemplate\TemplateExchange.prf";
        public const string URL_POWERSHELL = "http://{0}/PowerShell/";
        public const string DOMAIN_FORMAT = @"{0}\{1}";

        public const string MEIWAKU_FOLDER = "迷惑";
        public const string EDIT_EVERYONE = "Everyone";
        public const string FULL_CONTROL = "FullControl";
        #endregion
    }
}
